package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;

import java.util.List;
import java.util.Map;

/**
 * 体检预约服务接口
 */
public interface OrderService {



    //体检预约
    public Result order(Map map) throws Exception;

    //根据id查询预约信息，包括体检人信息、套餐信息
    public Map findById(Integer id) throws Exception;

    //根据时间范围，预约类型、状态及会员名手机号等分页查询
    PageResult findOrderInfosByConditions(QueryPageBean queryPageBean);

    Result orderByCall(Map map, String[] setmealIds) throws Exception;

    Result update(Map<String,Object> map,int id) throws Exception;

    void delete(int id);

    void changeOrderStatus(Map<String, Object> map);

    /*
    *查询每日预约数
    */
    List<Integer> findOrderCountByDate(List<String> days);
    /*
     *查询每日到诊数
     * */
    List<Integer> findVisitsCountByDate(List<String> days);
}
